home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / DJDEV203.ZIP / include / io.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-28  |  1.4 KB  |  52 lines

  1. /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
  2. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  3. #ifndef __dj_include_io_h_
  4. #define __dj_include_io_h_
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  11.  
  12. #ifndef __STRICT_ANSI__
  13.  
  14. #ifndef _POSIX_SOURCE
  15.  
  16. #include <sys/types.h>
  17.  
  18. int        chsize(int handle, long size);
  19. int        _close(int _fd);
  20. int        _creat(const char *_path, int _attrib);
  21. int        _creatnew(const char *_path, int _attrib, int _mode);
  22. ssize_t        crlf2nl(char *_buffer, ssize_t _length);
  23. int        _dos_lock(int _fd, long _offset, long _length);
  24. long        filelength(int _handle);
  25. short        _get_dev_info(int _arg);
  26. int        lock(int _fd, long _offset, long _length);
  27. int        _open(const char *_path, int _oflag);
  28. ssize_t        _read(int _fd, void *_buf, size_t _nbyte);
  29. int        setmode(int _fd, int _newmode);
  30. off_t        tell(int _fd);
  31. int        _dos_unlock(int _fd, long _offset, long _length);
  32. int        unlock(int _fd, long _offset, long _length);
  33. ssize_t        _write(int _fd, const void *_buf, size_t _nbyte);
  34. int            _chmod(const char *_path, int _func, ...);
  35. void        _flush_disk_cache(void);
  36.  
  37. #define sopen(path, access, shflag, mode) \
  38.     open((path), (access)|(shflag), (mode))
  39.  
  40. #endif /* !_POSIX_SOURCE */
  41. #endif /* !__STRICT_ANSI__ */
  42. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  43.  
  44. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  45. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  46.  
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50.  
  51. #endif /* !__dj_include_io_h_ */
  52.